<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/tld/genapha.tld" prefix="genapha" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="PRAGMA" content="NO-CACHE" />
        <title><tiles:getAsString name="title" /></title>
        <!-- jQuery -->
        <!--        <link type="text/css" href="\<html:rewrite page="/theme/jQuery%20UI/css/custom-theme/jquery-ui-1.8.4.custom.css" />" rel="stylesheet" />-->
        <link type="text/css" href="<html:rewrite page="/theme/jQuery%20UI/css/Aristo/jquery-ui-1.8.5.custom.css" />" rel="stylesheet" />
        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
        <script type="text/javascript" src="<html:rewrite page="/theme/jQuery%20UI/js/jquery-ui-1.8.2.custom.min.js" />"></script>
        <!--jQuery: DataTables -->
        <script src="<html:rewrite page="/js/dataTables-1.6/media/js/jquery.dataTables.js" />" type="text/javascript"></script>
        <link type="text/css" href="<html:rewrite page="/js/dataTables-1.6/media/css/demo_table_jui.css" />" rel="stylesheet" />

        <link rel="stylesheet" href="theme/genapha_v3.css" type="text/css" />
        <script type="text/javascript">
            $(document).ready(function() {
                $("#navbar > ul > li > ul").hover(function() {
                    $(this).prev("a").addClass("hover");
                }, function() {
                    $(this).prev("a").removeClass("hover");
                });
            });
        </script>
    </head>
    <body>
        <div id="wrap">

            <div id="headerExtend">
                <div id="header"></div>

            </div>

            <div id="navbar">
                <ul style="margin: 0 0 0 0">
                    <li><html:link forward="home">Home</html:link></li>
                    <li>
                        <html:link action="analyTools">
                            Generate Analysis Files
                            <span class="ui-icon dropdown ui-icon-triangle-1-s">&nbsp;&nbsp;&nbsp;</span>
                        </html:link>
                        <ul>
                            <logic:present name="data_fullaccess">
                                <li><html:link action="export">Generate Analysis Files</html:link></li>
                                <li><html:link action="exportRaw">Generate Raw Genotype Analysis Files</html:link></li>
                            </logic:present>

                            <logic:notPresent name="data_fullaccess">
                                <li>
                                    <html:link action="myDataRequests" title="My Data Requests">My Data Requests</html:link>
                                </li>
                                <li>
                                    <html:link action="export2" title="Request Data File">Request Data File</html:link>
                                </li>
                            </logic:notPresent>

                            <logic:present name="data_owner">
                                <li>
                                    <html:link action="dataRequestApprovals" title="Data Request Approvals">Data Request Approvals</html:link>
                                </li>
                            </logic:present>

                        </ul>
                    </li>
                    <li>
                        <html:link action="search">
                            Search
                            <span class="ui-icon dropdown ui-icon-triangle-1-s">&nbsp;&nbsp;&nbsp;</span>
                        </html:link>
                        <ul>
                            <li><a href="<html:rewrite action="search" />?searchSelect=1">Search: SNPs</a></li>
                            <li><a href="<html:rewrite action="search" />?searchSelect=2">Search: Genes</a></li>
                            <li><a href="<html:rewrite action="search" />?searchSelect=3">Search: KEGG Pathways</a></li>
                        </ul>
                    </li>
                    <li>
                        <html:link action="mapping">
                            Mapping
                            <span class="ui-icon dropdown ui-icon-triangle-1-s">&nbsp;&nbsp;&nbsp;</span>
                        </html:link>
                        <ul>
                            <li><a href="<html:rewrite action="geneSnp" />">Mapping: Gene to SNPs</a></li>
                            <li><a href="<html:rewrite action="snpGene" />">Mapping: SNP to Genes</a></li>
                            <li><a href="<html:rewrite action="genePathway" />">Mapping: Gene to Pathways</a></li>
                            <li><a href="<html:rewrite action="pathwayGene" />">Mapping: Pathway to Genes</a></li>
                        </ul>
                    </li>
                    <li><html:link action="association">Associations</html:link></li>
                    <li><html:link action="makePathway">Make Pathway</html:link></li>
                    <li><html:link action="myResults">My Results</html:link></li>
                    <li><html:link action="sitemap">Site Map</html:link></li>
                    <logic:present name="data_fullaccess">
                    <li><html:link action="admin">Admin</html:link></li>
                    </logic:present>
                    <li class="login"><genapha:LoginLogoutTag/></li>
                </ul>

            </div>

            <tiles:insert attribute="body" />

        </div>
        <div id="footer">
            <ul>
                <li><html:link forward="home">Home</html:link> |</li>
                <li><html:link action="analyTools">Generate Analysis Files</html:link> |</li>
                <li><html:link action="search">Search</html:link> |</li>
                <li><html:link action="association">Associations</html:link> |</li>
                <li><html:link action="makePathway">Make Pathway</html:link> |</li>
                <li><html:link action="myResults">My Results</html:link> |</li>
                <li><html:link action="sitemap">Site Map</html:link> |</li>
                <logic:present name="data_fullaccess">
                <li><html:link action="admin">Admin</html:link></li>
                </logic:present>
            </ul>
        </div>
    </body>
</html>

